//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace.api.entity;

import com.baidu.trace.model.SortType;

public class SortBy {
    private String a;
    private SortType b;

    public String getFieldName() {
        return this.a;
    }

    public SortType getSortType() {
        return this.b;
    }

    public void setSortType(SortType var1) {
        this.b = var1;
    }

    private SortBy(String var1, SortType var2) {
        this.a = var1;
        this.b = var2;
    }

    public static SortBy buildLocTime(SortType var0) {
        return new SortBy("loc_time", var0);
    }

    public static SortBy buildEntityName(SortType var0) {
        return new SortBy("entity_name", var0);
    }

    public static SortBy buildEntityDesc(SortType var0) {
        return new SortBy("entity_desc", var0);
    }

    public static SortBy buildCustomKey(String var0, SortType var1) {
        return new SortBy(var0, var1);
    }

    public String toString() {
        StringBuffer var1;
        (var1 = new StringBuffer("SortBy{")).append("fieldName='").append(this.a).append('\'');
        var1.append(", sortType=").append(this.b);
        var1.append('}');
        return var1.toString();
    }
}
